package com.jhws.core.mns.bo;

public class MNSMessage {
    private String id; //消息ID
    private String content; //内容
    private int count; //消息数量
    private long enqueueTime; //加入队列时间
    private long firstDequeueTime; //第一次消费时间

    public MNSMessage() {
    }

    public MNSMessage(String id, String content, int count) {
        this.id = id;
        this.content = content;
        this.count = count;
    }

    public MNSMessage(String id, String content, int count, long enqueueTime, long firstDequeueTime) {
        this.id = id;
        this.content = content;
        this.count = count;
        this.enqueueTime = enqueueTime;
        this.firstDequeueTime = firstDequeueTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public long getEnqueueTime() {
        return enqueueTime;
    }

    public void setEnqueueTime(long enqueueTime) {
        this.enqueueTime = enqueueTime;
    }

    public long getFirstDequeueTime() {
        return firstDequeueTime;
    }

    public void setFirstDequeueTime(long firstDequeueTime) {
        this.firstDequeueTime = firstDequeueTime;
    }

    @Override
    public String toString() {
        return "MNSMessage{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", count=" + count +
                ", enqueueTime=" + enqueueTime +
                ", firstDequeueTime=" + firstDequeueTime +
                '}';
    }
}
